package com.biz.primus.base.enums;

import com.biz.primus.common.enums.EnumerableValue;
import com.biz.primus.common.enums.converter.BaseEnumValueConverter;

/**
 *
 * 注册登录的原始渠道
 *
 * 可以是具体客户的网站应用或者app 微商城等
 *
 * 如
 *  1919_WEB(1, "www.1919.cn"),
 *  1919_APP(2, "1919kuaihe")
 *
 * @author jun.liu
 * @date 2017/9/29
 */
public enum ChannelTypes implements EnumerableValue
{

    WEB(1, "网站应用"),

    APP(2, "手机应用"),

    CUSTOMERCENTER(3, "客服中心"),

    POS(4,"门店POS")
    
    ;

    public static class Converter extends BaseEnumValueConverter<ChannelTypes>
    {
    }

    ChannelTypes(Integer value, String code) {
        this.value = value;
        this.code = code;
    }

    private Integer value;

    private String code;

    @Override
    public int getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

}
